Companion

object Companion

Functions

anonymous
Link copied to clipboard
fun anonymous(reuseExisting: Boolean = true): Credentials
Creates credentials representing an anonymous user.
apiKey
Link copied to clipboard
fun apiKey(key: String): Credentials
Creates credentials representing a login using a user API key.
apple
Link copied to clipboard
fun apple(idToken: String): Credentials
Creates credentials representing a login using an Apple ID token.
customFunction
Link copied to clipboard
fun customFunction(payload: Map<String, *>): Credentials
Creates credentials representing a login using an App Services Function.
fun customFunction(payload: BsonDocument): Credentials
Creates credentials representing a login using an App Services Function.
emailPassword
Link copied to clipboard
fun emailPassword(email: String, password: String): Credentials
Creates credentials representing a login using email and password.
facebook
Link copied to clipboard
fun facebook(accessToken: String): Credentials
Creates credentials representing a login using a Facebook access token.
google
Link copied to clipboard
fun google(token: String, type: GoogleAuthType): Credentials
Creates credentials representing a login using a Google access token of a given GoogleAuthType.
jwt
Link copied to clipboard
fun jwt(jwtToken: String): Credentials
Creates credentials representing a login using a JWT Token.